package com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.service.impl;

import com.sinosoft.vaccinetoai.dao.mapper.business.ChatRecordMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.io.DeleteChatRecordIO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.vo.DeleteChatRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.deletechatrecord.service.IDeleteChatRecordService;

import javax.annotation.Resource;

/**
 * @ClassName: DeleteChatRecordServiceImpl
 * @ClassNameExplain: 
 * @Description: 删除聊天历史Service Impl
 * @author xiazhihao
 * @date 2023年12月20日 19:41
 */
@Slf4j
@Service("DeleteChatRecordService")
public class DeleteChatRecordServiceImpl implements IDeleteChatRecordService {

	@Resource
	private ChatRecordMapper chatRecordMapper;

	@Override
	public DeleteChatRecordVO deleteChatRecord(DeleteChatRecordIO io) throws Exception {
        DeleteChatRecordVO vo = new DeleteChatRecordVO();
        chatRecordMapper.batchDelete(io.getIds());
		return vo;
	}
	
}